<?php
class Additions {   
    public function __construct($dbConnection)
    {
        $this->Connection=$dbConnection;
    }
    private $Connection;
    
    public function getAllAdditionTyps() 
    {
        $additionTyps = array();
        $queries = new mysqlqueries();
        $resultAdditionTyp = $this->Connection->query($queries->GetTable($queries->Additiontype, null));
        while ($rowAdditionTyp = mysqli_fetch_array($resultAdditionTyp)) 
        {
            array_push($additionTyps, $rowAdditionTyp);
        }       
        return $additionTyps; 
    }
}
